package com.xd.dubai.api.service;

import com.xd.dubai.api.entity.ApiHealthyRecordEntity;
import com.xd.dubai.api.service.innate.ApiHealthyRecordSerInnateAbsImp;
import com.xd.dubai.api.service.ser.ApiHealthyRecordService;
import org.springframework.stereotype.Service;

@Service
public class ApiHealthyRecordServiceImp extends ApiHealthyRecordSerInnateAbsImp implements ApiHealthyRecordService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(ApiHealthyRecordEntity inEntity) {

    }

    @Override
    protected void userModEntity(ApiHealthyRecordEntity inEntity, ApiHealthyRecordEntity upEntity) {
        upEntity.setHealthRecordNumber(inEntity.getHealthRecordNumber()); // 编号
        upEntity.setResidentName(inEntity.getResidentName()); // 姓名
        upEntity.setResidenceAddress(inEntity.getResidenceAddress()); // 户籍地址
        upEntity.setNowAddress(inEntity.getNowAddress()); // 现住址
        upEntity.setContactPhone(inEntity.getContactPhone()); // 联系电话
        upEntity.setTownshipStreetName(inEntity.getTownshipStreetName()); // 乡镇（街道）名称
        upEntity.setVillageCommitteeName(inEntity.getVillageCommitteeName()); // 村（居）委会名称
        upEntity.setFileUnit(inEntity.getFileUnit()); // 建档单位
        upEntity.setFileMaker(inEntity.getFileMaker()); // 建档人
        upEntity.setResponsibleDoctor(inEntity.getResponsibleDoctor()); // 责任医生
        upEntity.setFileTime(inEntity.getFileTime()); // 建档时间

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
